<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生考试管理系统 - 考试结果</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        .result-container {
            max-width: 600px;
            margin: 0 auto;
        }
        .score-card {
            text-align: center;
            padding: 30px;
        }
        .score-value {
            font-size: 4rem;
            font-weight: bold;
        }
        .question-review {
            margin-top: 30px;
        }
    </style>
</head>
<body>
<!-- 导航栏 -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container">
        <a class="navbar-brand" href="dashboard.html">
            <i class="fa fa-graduation-cap mr-2"></i>学生考试管理系统
        </a>

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" href="dashboard.html">仪表盘</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="exams.html">在线考试</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="examResult.html">成绩查询</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="profile.html">个人信息</a>
                </li>
            </ul>

            <ul class="navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                        <i class="fa fa-user-circle mr-1"></i>张三 (20230001)
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <li><a class="dropdown-item" href="profile.html">个人信息</a></li>
                        <li><a class="dropdown-item" href="changePassword.html">修改密码</a></li>
                        <li><hr class="dropdown-divider"></li>
                        <li><a class="dropdown-item" href="login.html">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<!-- 主内容 -->
<div class="container mt-4 result-container">
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    <i class="fa fa-trophy mr-2"></i>考试结果
                </div>
                <div class="card-body">
                    <div class="score-card">
                        <div class="score-value text-success">85.5</div>
                        <div class="text-lg">恭喜你完成了考试！</div>
                        <div class="mt-2">
                            <span class="badge bg-success text-white">通过</span>
                        </div>
                        <div class="mt-3">
                            <p>课程: Java程序设计</p>
                            <p>考试日期: 2025-06-20</p>
                            <p>考试时长: 120分钟</p>
                        </div>
                    </div>

                    <div class="question-review">
                        <h5>答题情况</h5>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th>题目</th>
                                <th>得分</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>单选题 (10分)</td>
                                <td>10分</td>
                                <td><span class="text-success">正确</span></td>
                            </tr>
                            <tr>
                                <td>多选题 (15分)</td>
                                <td>15分</td>
                                <td><span class="text-success">正确</span></td>
                            </tr>
                            <tr>
                                <td>判断题 (10分)</td>
                                <td>0分</td>
                                <td><span class="text-danger">错误</span></td>
                            </tr>
                            <tr>
                                <td>简答题 (25分)</td>
                                <td>20分</td>
                                <td><span class="text-success">部分正确</span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="mt-4 text-center">
                        <a href="exams.html" class="btn btn-primary">
                            <i class="fa fa-list mr-1"></i>返回考试列表
                        </a>
                        <a href="scores.html" class="btn btn-secondary">
                            <i class="fa fa-graduation-cap mr-1"></i>查看所有成绩
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>